package Thread;
//通过实现Runable接口进行多线程创建
class MyThread1 implements Runnable{

    @Override
    public void run() {
        System.out.println("线程启动");
    }
}
public class dome2 {
    public static void main(String[] args) {
       Thread t = new Thread(new MyThread1());
       t.start();
        System.out.println("主线程启动");
    }
}
